package com.kafka.learn.kafka;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringApplicationRunListener;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@SpringBootApplication
public class KafkaApplication {

    public static void main(String[] args) {
        SpringApplication.run(KafkaApplication.class, args);
    }
}

@Configuration
class TestListener implements SpringApplicationRunListener {
    @Bean
    public SpringApplicationRunListener getCallBack(){
        return new LifeCycleCallBack();
    }
}

